<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="<? print JCAT_Webpage::$sHtmlKeywords ; ?>" />
<meta name="description" content="<? print JCAT_Webpage::$sHtmlDescription ; ?>" />

<?php if(JCAT_Webpage::GetPathBase()){ ?><base href="<? print JCAT_Webpage::GetPathBase() ; ?>" target="<? print JCAT_Webpage::GetPathBaseTarget() ; ?>" /><?php }?>
<?php if(JCAT_Webpage::GetRefreshSecond()){ ?><meta http-equiv="refresh" content="<? print JCAT_Webpage::GetRefreshSecond() ; ?>;URL=<? print JCAT_Webpage::GetRefreshURL() ; ?>" /><?php }?>

<title><? print JCAT_Webpage::GetTitle() ; ?></title>

<?
$aIterator = JCAT_HTMLResourceContainer::CreateIterator() ;
$aIterator->First() ;
while( !$aIterator->IsDone() )
{
	$aResource = $aIterator->Current() ;

	if( JCAT_Global::IsKindOf($aResource,'JCAT_JS') )
	{

	print $aResource->MakeHTMLAccessCode() ;
	print "\r\n" ;
}	
	$aIterator->Next() ;
}
?>
<?
$aIterator = JCAT_HTMLResourceContainer::CreateIterator() ;
$aIterator->First() ;
while( !$aIterator->IsDone() )
{
	$aResource = $aIterator->Current() ;

	if( JCAT_Global::IsKindOf($aResource,'JCAT_CSS') )
	{

	print $aResource->MakeHTMLAccessCode() ;
	print "\r\n" ;
}	
	$aIterator->Next() ;
}
?>
</head>

<body>

<?
$aView = JCAT_View::GetViewByGlobalName('HTMLBodyView') ;
JCAT_ASSERT::ASSERT_INSTANCE($aView,'JCAT_IView',JCAT_Language::SentenceEx('视图：“%s”未定义。','JCAT',null,'HTMLBodyView')) ;
$aView->ShowView() ;
?>

<?
JCAT_ASSERT::ASSERT_INSTANCE($TheView,'JCAT_IView',JCAT_Language::SentenceEx('未定义视图，<View:Initialize /> 节点必须使用在Html视图的模本文件中。','JCAT',null)) ;
$TheView->InitializeViewForHtml() ;
?>
</body>

</html>